package cn.jdx;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling //(1).开启定时任务
public class AppApplication {

    public static void main(String[] args) {
        //(2).编写定时任务的服务
        //(3).开启运行这个类
        System.out.println("[启动]开启定时任务");
        SpringApplication.run(AppApplication.class, args);
    }

}
